import { Socket } from "socket.io";
import KeyChunkService from "../../services/KeyChunkService";


/**
 * 数据中心
 * @param socket 
 */
function namespace(socket: Socket) {
  console.log('has conn is admin');
  // outSocket = socket
  socket.emit('conn', 2000)

  socket.on('c-q-keyChunkStastatusStatistics', async () => {
    const result = await KeyChunkService.statusStatistics()
    socket.emit('s-q-keyChunkStastatusStatistics', result)
  })


}

// export outSocket



export default namespace

